Implemented 'AlreadyExistException' and 'NonExistentElementException'', fixed some errors