added gitignore file
Reformatted and arranged all code.