Added .gitignore and updated readme

I renamed the readme to readme.md with better formatting for Github. Updated hash style in readme to 1.9 style. Reworded some examples. Added a .gitignore with .DS_Store inside so that Mac-commiters wouldn't have odd files in there.