Added comments.
Added magnitude function to library.
Updated signature of magnitude
Swapped magnitude's type to Integer
One of these days I'll get magnitude's type right. :)
Solved 13 using Haskell.