increased buffer size for friendly_pose sprintf
changed check for MAX_CONTEXTS order and added check in print loop