Documentation and errors added

Implemented error alert screeens (not for delete buttons, also they are
untested) and added a load of documentation to everything