Optimization of a magneto–optic trap using nanofibers