Changed the w_mem into a sliding window solution.
Removed the regs file. Not needed anymore.