updated version addressing most of the reviewer comments, improved formatting