updated and finished....

in process of error checking and revision to ensure code preforms and
works well.