added quartile calculations to pas, fixed a few bugs, removed and merged some menu items