remove scratchPaper file from api/resource directory
Fix some code errors