remove unnecessary hooks. add documentation