Formatted code

fixed some building script issues