various changes

converted code into a register function to shorted code and keep things
simple, added more boards