Fixed imports Related to #19
Related to #12
Added type definitions for components, functions, data Added guards for network responses fixes #8