add write flag for samples
write also subject samples
Use only InputStream instead of BufferedReader, it saves so much heap space.
add release name