main py app refactoring and update to readme