Added constness to appropriate methods in boardmodel. Tidied up some formatting.
Merge branch 'refactormodel'