window creation. some indentation fixes. this basically brings my tree back in sync with the repository again...