I can't think of any good books that deal with these topics. I learned about inversions from Kostka and Payne's Tonal Harmony (which is not a great book by any means, though it covers a lot of ground). I would check out Hindemith's texts to read on melodic writing (among other important things).
Books are expensive, nowadays you can find a PDF for most anything, but a simple Google search will yield many informative links on the aforementioned subjects. If you actually want to learn, go for it.