Update to v1.0
add main function for test