fixed a comment
updated display mode selection method and improoved text based display scaling