minor bug fixes
fixed readInt and printBytes