Added getShares, parameterised adding/updating files, made the config file appear in the home not relative to PWD, general clean up