Statistics bug fixes and added methods to swagger