Add documentation

Add documetations to files and functions. Closes #17