Added further performance tests and update array syntax
Added documentation to functions