Added gitignore.
Formatting and add doubles.