cleanup code
put space before star for pointers
use const modifier