Clean up functions.php

Remove unused functions.
Use modern array syntax.
Add to-dos to readme.md.