Reindent, finished implementation of IDB