added messages and documented premap