Fixed small bugs, exposed apis for underling data and better separation of formatting concerns. Fixed version problem