Documentation improvement

# development of comprehensive code documentation
# print input auxiliary function