- made main export a function taking in options to configure Java runtime