Fixed some reference problems and setup better access to application
from Eclipse.