Add package statistics
cleanup
put messages in messages.h
remove space
blig
strtod -> strtol
no need to cast strtol