Added gitignore

Thanks to
https://gist.github.com/tobinharris/114476
Fixed memory leaked & added tab

Using tabs will be the next way to navigate the interface.