Partially working file assembler and testcase.

Semi-working output. \o/