cleanup document related functions
Update to smali 2.0.2