add hook base
modified readme and added base classes