add format attribute to change output format

This allows you the control the format which gets written into the scope. Additional documentation can be found in the README.