write-problem-* functions fixed
write-problem-* tests added
formatting, writing problems in fore-prob function
missing tests added.
100% code coverage cc @weavejester :)