Fixes several issues

Commands now work with the new hook lib
CommandLib now includes hooklib if it is not already loaded