Fix lexer detection

Try with filename if we cannot find the lexer from mime type
Raise max file limit
Fix to_lower shortcut

was using the to_upper shortcut
Fix clean_document

now the last blank lines are correctly removed
Finish notepad example