Added equals() and hashCode() and renewed setters/getters.
Added full persistence layer.