added format documentation, removed warnings