Fixing purchase event functions.
Adding format string specification to shell prompt.