Update documentation and add -p flag