Added .gitignore
Added main functionality.