init global variables for names. removed useless variables + cleanup.