Cleaned up code.Removed doctests code