Fix a bug in MainLoop
Add --extra and other flags to --auto signatures
Update examples