Adds support for external magnetic field in vertical direction

* Extaernal magnetic field may be horizontal, vartical or zero
* Pm =0 implemented
Fix silly braces error
Update input