formatted out the code, fixed license header