added -d for docs; moved _boilerplate & _global