made classpath relative, cleared some warnings