Fix using parseInt instead of parseFloat. Fixes #17. Fixed comments.