updated documentation in capture and main