tarted writing calc_properties

commit before replacing class 'Global' by namespace global
changed Global class to global namespace with externally linked variables