Minor changes

I was reading the code to get better idea of how mobi-router works, these are some minor changes, some typos corrected, few functions documented and little extra documentation. No changes in code, yet.