added a striping function and added some commenting and fixed variables