Updated README
Refactor some controller code
Delete splits files when corresponding db entries are deleted