errors in properties, hash code and tree view fixed