thesis: added main
thesis: small changes to make it giveable

nothing important in src