Add simple example
Better execution error handling
Add openlibs() function