ide; fixed multiple issues with obj dir and target dir. closes #144, 30 and #811.