Changed typedefs of pointers to lower case names. Don't think necessary to typedef structs in cpp
small syntax change