Added send_str convenience function to tests.py; Minor refactoring of some entity/field code, added new fields. Added subroutine cues and steps.