fixed tons of bugs, added categories module