added external libs and includes. started implementing scripting