Small bug fix -- returning a vector instead of a list.
Adding convert.mask() function and bug fix to create.mask() function.