Fix button sizes array and clean up the code

    change the buttonSizes array accordingly to the bootstrap documentation

    clean up the way that buttonSizes and buttonTypes are checked