updated main-method for local usage of the project