made it executable and added sample / test code