I think the basic functionality is working.

Want to finish commenting and see if there's a better solution for the directory permissions...