sub menu built and error checking

created function to open and read Binary files