changing everything to a perl implementation
fixing example2
fixing example1
updating README.md