Added get aspect ratio method
Tweaked code formatting and internal array access