made posting work, fixed types, added post editing