full fix, everything works

todo:
limit n & n to > 1
write results to a file
maybe a better print function