Added variable board size
fixed a lot of stuff
code cleanup and comments
Merge pull request #2 from foxtrotfire/development-master

Added variable board size