preliminary attempt at icon
get window info
refactor configuration dir
add error messages
factor out mkdir, make some text editor dirs