clean up comments
add read support for SSL