added main() function
fixes for packaging