new parameter 'rcrit' for refreezing parametrization (was 'hcrit')
added 'tools.py' as collection of useful methods used in plotting and main programs