Extract common logic as MxColumnAndPosition module
Update README.md
Tweak code style
Refactor update_columns method