fixing warning
bag problem
changing list heat rules to strict rules
changing types context
fixing warning
adding comments
Merge pull request #15 from liyili2/java_rewrite_engine2

Java rewrite engine2