Added prototypes for open() and release(), some documentation tweaking