finalized the code with comments and made it easier to adjust by variables