Bugfix: c correction and file metadata

Fix bug in c correction (c = i/s) and in getting meta information from
filename.