Added build scripts and tweaked logging