made main public and removed exception handling to make my ide happy.