fixed system exit points, fixed encode function, added flags to yEncode for first/last line special handling, tested on sample yEnc file for correctness, wrote function to handle adding line breaks