added preview functionality, changed some paths/filenames