New stuff

Added a lot of restrictions to the managed files and removed some debug code