modified cakeFormat for use after decoding, added arguments to decode function for manual content type application