Improved the library

Improved the library a little bit. The assignment module makes use of these convenience methods.