New and improved trainer. Some nextwall.h functions were moved to separate header files.