moved class files to class/ subdirectory

also made minor changes like type hinting for methods, fixing doc typos
and stuff