initial code commit, current the file creating is bugged and it's not copying the stdin at all. Stopping for the day on this