Some fixes

Program would not run initially. Probably due to _tmain method?