Fixed version 1 bug, reformatted code, and fixed small bugs
Merge remote-tracking branch 'origin/hw' into hw
Merge pull request #7 from emblaser/V1complete

V1complete