Yay I think this all works now except for double inaccurracies
Added sample output and input files, changed everything to long long so no weird double arithmancy errors, and added a more efficient way to convert to a power