Implemented libraries

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

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