added notes to help find bug
Still searching for bug. Must be some external memory not set
Found bug due to signness on global var