Removed some console.logs.
Added some API stuff to access goals.