Added .gitignore file.
Fixed minor typo.
Added documentation template.
Minor code reordering.