Branch to rewrite closea module to work from masks in an input file rather than hardcoded indices. Functionality is the same.