renamed filenames as per standards.
Changed names as per naming standards.
Updated api.rst.
fixed bug.