Debugging code added for my own testing purposes using log cat; also changed Carrier Wave some and setup whole system on an infinite loop inside a thread separate from UI