FIX: getDisplayMode return copies not refs

previously returning references to local vars
remove TODO
add getMatchingFramerateIndex

returns the index of the closest matching framerate from an array of 
framerates