Updated publish script
add documentation