Major bug fix, user library now working