Change int to uint32
Change int to uint32_t on counts
Remove duplicate data in array
Compiled OK on MAC OS
refine the code to follow the rules in CodingStyle file.

I use the checkpatch.pl in linux kernel source code to check the
coding style:

$./checkpatch -f ~/nessDB/engine/*

However, there too many warnings about whitespace in the end of line
and line over 80 characters. so I ignore these 3 warnings/errors:

	(ignored) ERROR: trailing whitespace
	(ignored) WARNING: please, no spaces at the start of a line
	(ignored) WARNING: line over 80 characters

This commit mainly focus on the code indent, correcting the mixed usage
of whitespace and tabs, and some other coding styles, such as:

	ERROR: code indent should use tabs where possible
	ERROR: space required after that ','
	ERROR: space required after if/while statements
	ERROR: space required between operators (+ == > <= and so on)
Merge pull request #50 from Run/v2.0

refine the code to follow the rules in CodingStyle file.
Merge branch 'v2.0' into unstable