Added comments, switched python version from 2.6 to 2.7