used a different 'is array' test
renammed some instances of 'span' to 'maskingSpan' to improve clarity.
moved a large block of code to a new class.
fixed referencing error
removed some commented code
changed some instances of 'span' to 'maskingSpan' and added comments
removed useless track type.