updated gitignore
removed unused imports
minor refactoring
removed unused calculateCenter method

Signed-off-by: Nepetalactone <tobias.meusburger@gmx.net>