updated & refactored docs, added empty tag removal