convert tabs into withespaces
Added gitignore file
refactor controller into different files