updated app and added pdf generator