add format.pl
add examples
add credit to Jon