removed comments
added duration calculation, defaulted to 15min
added memcached check