cleaned up some board functions
split files