Extended require to use arrays as argument, did some linting and improvements to the code, more comments