Moved input files and added writer with main