formatting updates for psr2 standard
made cache static, made time param optional defaults to current time