Fixed issue with initial pull from an empty repo
Refactored config parameters
Added branch switching and usage info