refacor
add documentation style comments