add doctest example; remove execute permissions for all files, since this confuses nose