added verification of existing local repository;
add fetch/pull upon branch switch;
fixed path to grab file for getFile