added pubspec file
added ignore file with pubspec lock file
fixed homepage typo
moved source file to lib
declared library and import html
better type for event