updated libaddonmenu to 1.0 r7
added libdebug (currently not used)
added function for handling string.format with nil values
refactoring