Refactoring

added .gitignore file
remove unused namespaces
smaller code changes