style update
updated
fixed some errors
moved memory functions to c-utils
updated
updated
updated
updated
updated
updated
updated
improoved and aded test