update formats returned
linting
add `getSubs()` function. fixes #48
better resolution detection
updated getFormats regex to handle unknown & ?x formats