Updated bug to fix bugs

- Error loading single proxy if proxy other than HTTP proxy is set.
Corrected spelling mistakes in comments

Reformatted code
Added TODO item
Fixed text templating batch file for VS2012