added messaging function, made commands output messages
FIxed up some flow handling, made hooks_list a bit more standard