Added a delete function, improved file handling and added hints to some areas of the system.