Major fixes, features added

Fixed cmdcheck(). It will now check for cmd :D
Added: more debug messages, %world% support, removed old while loop
inside checkcmd()