Added :before methods for setting parent to NIL.
Bug fixes and more default methods.