Exit if called without input
Fix incorrect file name