Consistentley replaced remaining spaces indentation with tabbed indentations and removed doubled whitespaces
Moving a variable from global scope to a single function as it was not needed anywhere else. Also fixing small details in the description.