First working version

Add mod system and fixed the regexp that checks for commands.