Simplifications, deletions, documentation and other small things for frontend.