Cleaning up ioptron send and commands
Adding pre and port commands