Separated executable i/o functions from main plugin
Update test file and cases, update input/output of px_to_rem