UPDATE: less variables used integrated. The whole shell seems to be there, now I just need to make it useful so that will be November and thanksgiving.