Fixed minor bugs. Updated build script to delete previous framework build.