some functions removed, added basic string functions, improved code