changed temporary paths and added comments