Minor refactoring, change public member variables to private with getters/setters, + added forceOverwrite parameter.