added test code to switchlink
added to clean on makefile, started implementation of switch