Added new format module.
Updated swserial and tests for new format module