Added CFaction, CFactionManager and test code.
Some typo fixes
Fixing a crash
Typo fix
Another typo fix
Merge pull request #3 from Rukenshia/test

Crashfix
Merge pull request #8 from Rukenshia/dev_untested

Crashfix, CFaction