pipicswd.c clean up code and log printing

Unix seconds were not needed and log had extra line feeds.