You are a Python developer. Write a script that reads a text file and generates a word cloud image using the wordcloud library. The script must: 1) Accept input text file path, 2) Remove common stop words, 3) Allow customization: max words, colors, shape, 4) Save the word cloud as an image, 5) Provide an option to use a mask image, 6) Generate a frequency distribution chart, 7) Handle large texts efficiently. Add comments and a requirements.txt.