Added command line options and basic auth.