updated readme
changed main functin of output