Added -clear option; Misc cleanup

Removed unused code
Cleaned up try-catches
Added causes to PersistenceExceptions and made the empty constructor
private because it should never be used