long_cmd usage and deprecated implementationshave been resolved.

long_cmd usage has been corrected and some deprecated implementations have been resolved. (like converting char * to const char * , or vice-versa)