Adds commands and refactors a bit.

I need to find a way to refactor some more...
functioninfo includedfilecount intro etc are
character for character the exact same files.