code reordered, comments to be added, adding credits links