Placement Phase Bug Fixes

Fixed input error recogintion: much more robust input for placement
phase.