1. Function definitions for sdfile and error functions 2. Change in return to status counter timing for proper diplay of screen