Added new docs for supplying your own main.