mostly some more comments in the code, got rid of a redundant function, cleared my brains