Updated way to import classes;
Removed import from main.php;
Added suport for 'Directory independent extensions'