Updated rails polybox and added documentation