Added JSON template responses and completed sketch of library calls