modified some data type definition;
delete some unused code & files.