Added a main() function.
Removed old string formatting.