a lot of cleanups, add comments, rename some functions
a lot of cleanups, add comments, rename some functions

atk4/atk4-addons,atk4/atk4-addons,xepan/atk4-addons,xepan/atk4-addons,xepan/atk4-addons,atk4/atk4-addons