Added options & previewFile option

Added new global and target-specific options and the previewFile option
to choose if you want the preview html file to be created
Added options tests
Fixed the task, added options, updated version