first commit
renamed tiles; better variables; cleanup; comments;