Bugfixing and refactoring.
Added a new script to print relative deviatons of memory usage.
Updated .gitignore