File cleanup, added commenting, fixed an issue in A*.