Add separate functions to determine column/line regions
Fix license header

Thanks, @fujin