various cleaning and unused code
update gitignore