fixed an array bug

when extracting the box atts I assumed that $atts would be an array,
which was an improper assumption to make. I also bundled in a few other
little fixes as well.