Added folder checking and minor changes on the structure and Ant build.

Check if the path entered exists, moved input scanner to a separated method, minor changes on the source directory and Ant build (making the jar file name a property and added a new target - run).