Version added, and code more commented.