Added gitignore file.
Added godoc style documentation to all methods.