moved formatter in separate file and updated readme