A bunch of fixes and changes

Fixed bugs in server that was causing it to fault
Changed custom button format and rendering
added examples