Tda improvement

Does a minor improvement (blink code outside of virtual computer loops) and added extra function to generate TDAtoABGR. 
Keeps being compatible with previous API.