Debugging w/ Localtest.c(check the comments for details), also type casted everything in m_loc.c