bug fix, v1.1 for roduction
resolve merge conflict
added notes, completed coding