Cleaned up the rgf writer code and added documentation
Built package docs