Hi there

First of all: thank you for your nice work. I've fixes some aesthetic errors for better IDE support and replaces get_class(...) == ... with instanceof operator.

Please consider pulling in ;)

Best Regards,
Simon