Introduced main() function; Added standard boilerplate code for calling main