refactored Rakefile and added proper formatting for assignments.rst