Add missing header files to qt project
Add comments.

This code is public now, so this is an effort to make it more human-parseable