Cleaned up .gitignore.

Re-structured the .gitignore file.
Added comments.