fixed and restructured some frontend, added setup script in py