Added more docsrtings and doctests. Corrected the orientnew method.