finished capture function. Worked out some of the mysterious gremlins in the system.

Camera module is now beta 1