fixed code format slightly
simplified the code and added functionality
this test simply calls -main from enclog.examples.clj