Added documentation for methods, changed a private method name