Added library support and test applications

Signed-off-by: shyeon.kim <kimseo@kth.se>

:w#	modified:   Makefile
Code refined

Signed-off-by: shyeon.kim <kimseo@kth.se>
Fixed merge conflicts

Signed-off-by: shyeon.kim <kimseo@kth.se>