fixed output problems and updated readme