Create hamiltonian for maxwell

Depends on #178 (closed)

Edited by Micael Oliveira