Added basic form validation
Added better docstrings for functions
Made npm package