refactored for bootstrap 3.0, integrated doc