Renamed the entry point to be main, added documentation.