Added loadlibrary.jl
Added library load check