cleaned up scripts into functions
more cleaning, masks consolodated
better plotting, getting masks and processes to work together