Import code fragments into namespaces
Ignore .nb-gradle
Fix imports and most obvious errors