[bug] fix BaseImportPath merge bug
[feature] #10 write out files
[templates] template bug and layout fixes