Cleaned up support functions

there is now a dedicated function for centring text, using the
camelCase naming convention for functions, new distance and compass to
string functions.