final formatting, bug checking, works well but has bug if not enter purchases right away after category created it puts purchases in same category