remove unused class
style: use function declarations and move exports to top
add entry point