Remove unused build scripts and done some code reformatting