Implemented all methods. Added configuration file. Fixed bugs.