Changed the use location of the global check_input flag. Removed no more relevant lines in doc.