added appropriate brackets to arrays, addressed spacing