added getReadme functionality to package and modify json encoding