Modified readBytes method
Added main form