Make function casing consistent across code base
Fixed backspacing, added more debugging output.