added class header and fixed indentation of actions and hooks