moved main file to lib directory
test bin implementation