The measure array retrieves elements from files in the directory.
Comments and some other minor bugs fixed.