Chmod and added writer for protein table