added configuration file, improved documentation, small refactors