Logic Fix

just fixed things of my last commit and added the required vs files.