first cumulative pull request

pull request to fix issues:  #1,  #14, #27 and #28