bugfix and tests
update gitignore and rm obj