added new build script, added a few references, reused reference file, removed antiquted files