Return values and more

- Added return values to the methods (currently the filename of the
output file, to handle the masked part).
- Added small file test
- Changed usual test
- Removed unused fieldNumber parameter from protobuf