moved over to project manager - restructured

added tests, added global state functions