Delete docs and minor refactor