moved methods getSize() and byte_convert() here; extended getSize() with second param to auto-convert size