Optimized Faidx.to_file() method and added a 'bedmask' script with system entry point.