added scalar-/hash-/array-dereferencing and removed debug cruft