Clean up namespace & add comments

Structured procrastination for debugging hrf function