Use of sensible variables and new logic

still bugs present and not even an alpha release!!