Added .idea to .gitignore
Added readme file
Cleaned up code a bit