Updated documentation, removed unused functions, corrected linux errors.