made NAME, VERSION and TMP_DIR variables read-only, many small fixes, updated README