Added and edited documentation, cleaned up.