Added the four constraint modes specified by riapi. Added some very basic documentation.