Added click function. Also cleaned up directory