update: -making DRY code -adding comments

done 6.6.2014: lines 34-48 added backup Folder, lines 145-147 get last entry without array
done 8.6.2014: shortening the code, deleting unnecessary lines of code (lines: 34-40, 118, 121) , adding comments to all methods