Add lower keyword
Add getting filename and output as that filename; fix endian issue