Added ASDoc comments and fixed the return values of all appropriate methods (most methods return the class instance to allow chaining)