changed long array addresses to pointers, closing issue #8