Add .gitignore
Code reformat & whitespace cleanup.