Add classloading function
Fixed classpath bug