Added inputdir as an option #27