Add .gitignore file
Code reformat and cleanup