Add lint passes + doc + ptrie serialization.