activeLayer --> parentLayer; also some comment/space removal