adding convenience functions and fixing Inf issue (#12)
style edits
Merge pull request #28 from modilabs/12_infinity

adding convenience functions and fixing Inf issue (#12)