Finished implementation of all methods

All the methods work correctly and catch each exception that should be
thrown.