Documentation has been completed. Minor code fix to optimize things.