Added some code to main to test the library - doesn't work so far :(