Adding .gitignore
Adding functions and javadoc