fixed logout
updated all function headers in API to javadoc standard