Minor fixes
Corrected the names of some method calls
Updated the array syntax for consistency