decoding works in theory
decoding now works in practice
moved decoding out of main, removed space option, removed force reverse