Fixed formatting of negative numbers (no more parenthesis). Added unit tests for format methods. Removed unnecessary checks in padLeft() and padRight().