FUNCTIONAL!

Code now returns a list of problems in JSON format once complete