Added command to generate documentation in doc/README
Fixed bug when freeing memory when not needed
Started rule binding