Fixed NPE in case of empty project definition.
Renamed default template to default.
Core reformat.