Added all files to bb.h, fixed bug in core, started resource manager.