Memory optimisation, improved speed and memory usage. Minor modifications in input preparation. Rain data is now scaled by 1000.