Updated the main and file examples.