minor code tweaks and simplifications.
minor code tweaks and simplifications.

gospodnetic/appleseed,appleseedhq/appleseed,glebmish/appleseed,gospodnetic/appleseed,glebmish/appleseed,docwhite/appleseed,est77/appleseed,aiivashchenko/appleseed,gospodnetic/appleseed,aytekaman/appleseed,gospodnetic/appleseed,appleseedhq/appleseed,Biart95/appleseed,Biart95/appleseed,aiivashchenko/appleseed,luisbarrancos/appleseed,Biart95/appleseed,luisbarrancos/appleseed,aytekaman/appleseed,aiivashchenko/appleseed,est77/appleseed,luisbarrancos/appleseed,Aakash1312/appleseed,luisbarrancos/appleseed,pjessesco/appleseed,glebmish/appleseed,docwhite/appleseed,Vertexwahn/appleseed,aiivashchenko/appleseed,aytekaman/appleseed,aiivashchenko/appleseed,pjessesco/appleseed,Vertexwahn/appleseed,pjessesco/appleseed,Aakash1312/appleseed,luisbarrancos/appleseed,docwhite/appleseed,gospodnetic/appleseed,est77/appleseed,pjessesco/appleseed,docwhite/appleseed,dictoon/appleseed,Aakash1312/appleseed,dictoon/appleseed,Vertexwahn/appleseed,dictoon/appleseed,aytekaman/appleseed,dictoon/appleseed,Vertexwahn/appleseed,glebmish/appleseed,pjessesco/appleseed,appleseedhq/appleseed,Vertexwahn/appleseed,Biart95/appleseed,glebmish/appleseed,Aakash1312/appleseed,appleseedhq/appleseed,Biart95/appleseed,docwhite/appleseed,est77/appleseed,appleseedhq/appleseed,aytekaman/appleseed,dictoon/appleseed,est77/appleseed,Aakash1312/appleseed