fix and simplify source code

fix 	error that set long value to null
modify 	set default sentTime to current time
delete 	useless constructors and notes
standardize source code format