added hooks to be called after creating or updating an object
fixed md
remove superfluous constructor call
fix constructor call