fixed file input, fixed multiline comments