Added very basic file io for debugging/results