Added docs on methods. Fixed codestyle and others adjustments