add eslintrc, clean up main