luna version of program

added if-else pathways and beginning of file progression for reverse
function