fixed some warnings & also modified datatypes.c for handling string