Added unit tests.
Added format() option to return formatted string.
Added help for new format() method.