Updated to work on Windows with examples. Will have to test Mac.