Minor edits -- adding sqlite3_finalize to getMoveInformation and working on generateRoutine