added routines template, updated flight control class