Made creating a company modular and recreated the proccess of which it
creates a company

-bug fixes:
 - permissions work
 - random crash bug fixed