Added verbose failure logging in ThreadingSample
Clearing credentials before setting new one
Added documentation and Javadoc mainly for interfaces