Cleaned up source code spacing and added mask output to maskgen.py