update to generalize across future optimization functions
Use json library rather than jsonpickle
Allow options to be passed into minimization
clean up old commented out code
Add entry point for npm module
Clean user input before sending to python