Update build.php and adding test files #2

Some minor fixes. build.php initial base structure assigned