Added bug retrieval and json formatting. next will be bug deleting.