Added function header comments to main() and getBase().