Added method stubs. Cleaned up main().