updated readme and fixed hooks