[CODE] Tested and improved tcl script, added Makefile


Signed-off-by: Francesco Robino <osso@T440p.bredbandsbolaget.se>