reordered main file

prepared main file so different chapters can be worked on independently
and so that we can have all lecture notes in one document