Finished up the framework

Added custom global functions and added support for modifiable
variables, while still maintaining a threadsafe design