Initial commit of build script
build function done ... I think. Added some logic to not repeat steps