updated toolchain, added download functionality. create makefile for apps, move rd_tool to rd and fix