Added --open option and document