Formatting code.
Internalising sources and exporting user functions.