added arrays, documentation