Corrected mistake in readme file.
Added some Javadoc, insignificant clean-up.
New special variable 'filename' expands to the current input file's name (in string mappings).