Add gitignore
Drop obsolete code
Improve memory consumption
Major refactor done
Merge branch 'feature/refactor' into develop