added process method using a mask and updated main plugin method
code clean-up and comments
add class description