Update routines.hpp

Improved documentation and added a handful of new members.