Reformat of code, inclusion of changelog task in buildscript