fixed some missing methods and improved some phpdocs