added console and fixed some file stuff