Reprogrammed aply_rule.clj (String -> list)

* The dynamic building of rules works with lists now
* Made some functions private
* Adapted tests