Fixed most of main.cpp (Added args, file reading, backends, pipe support, etc.)