Writing Wavefile works now!

Added Function to write numbers in x bytes.
Searching for optimizations of the Data-Generator-Function