add format option
Merge pull request #7 from rehia/master

add format option