Make sure transformers compile
Fix transformer bugs
Passed cpplint check