Update routines.cpp

Established variable default values and implemented the evaluation and initialization methods.