added v2

added v2 file that takes all the shit from my first go and dumps it into
functions with a main()