added polyfill for Array.prototype.isArray()

and improved documentation