Added logic to the Writer

Added logic for breaking message down, waiting for writeready flag,
encoding to carrier file, writing a readready flag